/** 
 * created by zhangyanling.
 * 该页面用于匹配'/'路由
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';

const mapStoreStateToProps = state => ({
    dispatch: state.dispatch,
});

class RootContainer extends Component {
	constructor(props) {
		super(props);	
		this.state = {}
	}
    render() {
        return (
            <div style={{height: '100%'}}>
                {this.props.children}
            </div>
        )

    }
}

RootContainer.propTypes = {
    dispatch: PropTypes.func,
    children: PropTypes.any,
};

export default connect(mapStoreStateToProps)(RootContainer);